home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE09 / CODERS / CHRCONST.PAS next >
Encoding:
Pascal/Delphi Source File  |  1995-08-09  |  4.8 KB  |  64 lines

  1. unit ChrConst ;
  2. (*****) interface (*******************************)
  3.  
  4.  
  5. const
  6. (*  ASCII control characters *)
  7. (* ------------------------------------------------ *)
  8. (*    name  byte  ctrl   description          notes *)
  9. (* ------------------------------------------------ *)
  10.   NUL = #00 ; (*  ^@     null                    Spacing character, used to terminate strings in C and Windows.           *)
  11.   SOH = #01 ; (*  ^A     Start Of Heading        Begins transmission of data block or new file.                           *)
  12.   STX = #02 ; (*  ^B     Start TeXt              Marks beginning of text following header data.                           *)
  13.   ETX = #03 ; (*  ^C     End TeXt                May mark beginning of error checking data.                               *)
  14.   EOT = #04 ; (*  ^D     End Of Transmission     Sign-off code, sometimes marks end of file.                              *)
  15.   ENQ = #05 ; (*  ^E     ENQuiry                 Requests Status info from remote location.                               *)
  16.   ACK = #06 ; (*  ^F     ACKnowledge             Verifies the success of communications between locations.                *)
  17.   BEL = #07 ; (*  ^G     BELl                    Beeps speaker (or rings Teletype Bell), signalling need of attention.    *)
  18.   BS  = #08 ; (*  ^H     BackSpace.                                                                                       *)
  19.   HT  = #09 ; (*  ^I     Horizontal Tab.                                                                                  *)
  20.   LF  = #10 ; (*  ^J     Line Feed.                                                                                       *)
  21.   VT  = #11 ; (*  ^K     Vertical Tab.                                                                                    *)
  22.   FF  = #12 ; (*  ^L     Form Feed.              Skip to next page.                                                       *)
  23.   CR  = #13 ; (*  ^M     Carriage Return.                                                                                 *)
  24.   SO  = #14 ; (*  ^N     Shift Out               Changes character set.                                                   *)
  25.   SI  = #15 ; (*  ^O     Shift In                Changes character set.                                                   *)
  26.   DLE = #16 ; (*  ^P     Data Link Escape        Modifies meaning of subsequent characters (like ESC).                    *)
  27.   DC1 = #17 ; (*  ^Q     Device Control 1        Used as XON to signal remote location to transmit.                       *)
  28.   DC2 = #18 ; (*  ^R     Device Control 2        General purpose toggle signal.                                           *)
  29.   DC3 = #19 ; (*  ^S     Device Control 3        Used as XOFF to signal remote location to not transmit.                  *)
  30.   DC4 = #20 ; (*  ^T     Device Control 4        General purpose toggle signal.                                           *)
  31.   NAK = #21 ; (*  ^U     Negative AcKnowledge                                                                             *)
  32.   SYN = #22 ; (*  ^V     SYNchronous Idle        Used between data blocks in synchronous communications.                  *)
  33.   ETB = #23 ; (*  ^W     End Transmission Block  Variant of ETX                                                           *)
  34.   CAN = #24 ; (*  ^X     CANcel                  Usually signals transmission error.                                      *)
  35.   EM  = #25 ; (*  ^Y     End Medium              Signals physical end of data source.                                     *)
  36.   SUB = #26 ; (*  ^Z     SUBstitute              Replaces characters that are invalid or undisplayable; EOF marker in DOS *)
  37.   ESC = #27 ; (*  ^[     ESCape                  Marks following characters as a control sequence                         *)
  38.   FS  = #28 ; (*  ^/     File Separator          Marks logical boundary between files.                                    *)
  39.   GS  = #29 ; (*  ^]     Group Separator         Marks logical boundary between data groups.                              *)
  40.   RS  = #30 ; (*  ^^     Record Separator        Marks logical boudnary between data records.                             *)
  41.   US  = #31 ; (*  ^_     Unit Separator          Marks logical boundary between data units.                               *)
  42.   SPC = #32 ; (*  <none> Space                                                                                            *)
  43.   DEL = #127; (*  <none> DELete                  Eliminates other characters.                                             *)
  44.  
  45. const
  46.   CRLF = CR + LF ; (*  DOS Text file line termination. *)
  47.   RETURN = CRLF ;
  48.   ENTER = CRLF ;
  49.   SPACE = SPC ;
  50.  
  51.  
  52.  
  53. (*****) implementation (**************************)
  54. {$ifdef ver80 }
  55. initialization
  56. {$else}
  57. begin
  58. {$endif}
  59.  
  60.     (* unit ChrConst -- initialization code *)
  61.   (* NONE *)
  62. end (* unit ChrConst -- initialization code *) .
  63.  
  64.